package lab02.test15;

import java.util.Scanner;
public class Test_15 {
    public static void main(String[] args) {
        Graduate zhangsan=new Graduate();
        zhangsan.name="zhangsan";
        zhangsan.sex="男";
        zhangsan.age=23;
        System.out.println(zhangsan.toString());

        Scanner sc=new Scanner(System.in);
        System.out.println("请输入每学期的学费：");
        double fee=zhangsan.fee=sc.nextDouble();
        System.out.println("请输入月工资：");
        double pay=zhangsan.pay=sc.nextDouble();

        if (12*pay-2*fee<2000){
            System.out.println("You  need a loan!");
        }
        System.out.println("Your income is enough！");
    }
}
